package com.bdqn.t382.service.impl;

import com.bdqn.t382.mapper.ElectronMapper;
import com.bdqn.t382.pojo.Electron;
import com.bdqn.t382.service.ElectronService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ElectronServiceImp implements ElectronService {
    @Autowired
    private ElectronMapper electronMapper;

    @Override
    public int counts() {
        return electronMapper.count();
    }

    @Override
    public List<Electron> ElectronListBiz(Electron electron) {
        return electronMapper.ElectronList(electron);
    }

    @Override
    public int insertBiz(Electron electron) {
        return electronMapper.insert(electron);
    }
}
